package com.sy.mapper;

import com.sy.entity.Trainer;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface TrainerMapper {
    List<Trainer> getTrainerByDriId(@Param("driSchoolIds") List<Integer> driSchoolIds, @Param("keyword") String keyword, @Param("sort") String sort, @Param("isSort") Integer isSort, @Param("startPrice") BigDecimal startPrice, @Param("endPrice") BigDecimal endPrice, @Param("start") Integer start);

    Trainer getTrainerByTrainerId(Integer trainerId);

    long getCountByDriId(@Param("driSchoolIds") List<Integer> driSchoolIds, @Param("keyword") String keyword, @Param("sort") String sort, @Param("isSort") Integer isSort, @Param("startPrice") BigDecimal startPrice, @Param("endPrice") BigDecimal endPrice);

    boolean updateTrainer(@Param("count") Integer count, @Param("trainerId") Integer trainerId);

    Integer getCountByTrainerId(Integer trainerId);

}
